//
//  PersonListCollectionViewCell.m
//  Taste
//
//  Created by 徐昊 on 16/9/3.
//  Copyright © 2016年 徐昊. All rights reserved.
//

#import "PersonListCollectionViewCell.h"
#import "PersonListRes.h"
#import "UIImageView+WebCache.h"
#import "NSString+Vali.h"

@interface PersonListCollectionViewCell ()
@property (weak, nonatomic) IBOutlet UIImageView *pic;
@property (weak, nonatomic) IBOutlet UILabel *title;
@property (weak, nonatomic) IBOutlet UILabel *company;
@property (weak, nonatomic) IBOutlet UILabel *position;
@property (nonatomic, copy) NSString *num;


@end

@implementation PersonListCollectionViewCell

- (void)setRes:(PersonListRes *)res {
    _res = res;
    _title.text = _res.title;
    _company.text = _res.company;
    _position.text = _res.position;
    _num = _res.personList_id;
    [_pic sd_setImageWithURL:[NSURL URLWithString:[NSString imageWebWithStr:_res.pic]] placeholderImage:[UIImage imageNamed:@"IMG_Universal_Placeholder"] completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, NSURL *imageURL) {
        
        
    }];
    
}

- (void)awakeFromNib {
    // Initialization code
    [super awakeFromNib];
}

@end
